<?php

/*
 * author : wiloke
 * author uri: wiloke.com
 * date: 04/26/2014
 * time: 07 AM
 */

$aOurServices = get_post_meta($post->ID, $post->post_type, true);

$aOurServices = isset($aOurServices['service']) ? $aOurServices['service'] : null;


$aOurServices = wp_parse_args($aOurServices, array('service_description'=>' ', 'service_title'=> array(''), 'service_icon'=> array('fa fa-refresh'), 'small_intro'=>array(' '), 'logo'=>' ', 'author'=> ' ', 'slogan'=>' ') );

?>    

<table class="form-table">
    <tbody>
        <tr>
            <th style="vertical-align: middle;">Slogan (Allow all html tags)</th>
            <td style="text-align:center;vertical-align: middle;">
                <div class="form-group" style="margin: 0">
                    <div class="controls">
                        <textarea name="service[slogan]"  style="width: 100%" ><?php echo $aOurServices['slogan'] ?></textarea>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <th style="vertical-align: middle;">Author</th>
            <td style="text-align:center; vertical-align: middle;">
                <div class="form-group" style="margin: 0">
                    <div class="controls">
                        <input type="text" name="service[author]" class="form-control" value="<?php echo $aOurServices['author'] ?>">
                    </div>
                </div>       
            </td>
        </tr>
    </tbody>
</table>
